package com.xuetang.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 食谱实体类
 */
public class DietRecipe {
    private Integer id;
    private String title;
    private String description;
    private String image;
    private BigDecimal calories;
    private BigDecimal carbs;
    private BigDecimal protein;
    private BigDecimal fat;
    private String mealType;
    private String tips;
    private Integer status;
    private Integer prepTime; // 准备时间（分钟）
    private Integer cookTime; // 烹饪时间（分钟）
    private Date createTime;
    private Date updateTime;

    // 非数据库字段
    private List<DietRecipeDetail> meals;
    private List<DietRecipeStep> steps; // 烹饪步骤

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public BigDecimal getCalories() {
        return calories;
    }

    public void setCalories(BigDecimal calories) {
        this.calories = calories;
    }

    public BigDecimal getCarbs() {
        return carbs;
    }

    public void setCarbs(BigDecimal carbs) {
        this.carbs = carbs;
    }

    public BigDecimal getProtein() {
        return protein;
    }

    public void setProtein(BigDecimal protein) {
        this.protein = protein;
    }

    public BigDecimal getFat() {
        return fat;
    }

    public void setFat(BigDecimal fat) {
        this.fat = fat;
    }

    public String getMealType() {
        return mealType;
    }

    public void setMealType(String mealType) {
        this.mealType = mealType;
    }

    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getPrepTime() {
        return prepTime;
    }

    public void setPrepTime(Integer prepTime) {
        this.prepTime = prepTime;
    }

    public Integer getCookTime() {
        return cookTime;
    }

    public void setCookTime(Integer cookTime) {
        this.cookTime = cookTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public List<DietRecipeDetail> getMeals() {
        return meals;
    }

    public void setMeals(List<DietRecipeDetail> meals) {
        this.meals = meals;
    }

    public List<DietRecipeStep> getSteps() {
        return steps;
    }

    public void setSteps(List<DietRecipeStep> steps) {
        this.steps = steps;
    }
}